<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>HOME</title>
<!--    <script src="js/common.js"></script>-->
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <script src="js/vue.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script src="js/jquery.min.js"></script>
</head>
<body>
<div id="app" style="width: 1200px">
    <header>
        <h1>{{title}}</h1>
    </header>
    <div>
        图片总数：<span class="badge">{{imgList.length}}</span>
    </div>
    <span v-for="img in imgList" >
        <a :href="img" class="img-thumbnail" target="_blank">
            <img :src="img"  style="height: 200px">
        </a>
    </span>

</div>
<script>
const app = new Vue({
    el:'#app',
    data:{
        title:'Picture Library',
        imgList:[
            'img/1.jpg',
            'img/2.jpg',
            'img/3.jpg',
        ]
    },
    method:{
    }
})
</script>
</body>
</html>